package com.dylovedz.javafxphone.repository;

import com.dylovedz.javafxphone.domain.WechatApp;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface WechatAppRepository extends JpaRepository<WechatApp, Integer>, JpaSpecificationExecutor<WechatApp> {

    Optional<WechatApp> findByAppId(String appId);
}
